
// #ifdef VUE3
import { createStore } from 'vuex'
import moduleCart from './cart.js'
import moduleUser from './user.js'

const store = createStore({
  modules: {
    m_cart: moduleCart,
    m_user:moduleUser
  }
})

export default store
// #endif

// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
import moduleCart from './cart.js'
import moduleUser from './user.js'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    m_cart: moduleCart,
    m_user:moduleUser
  }
})

export default store
// #endif
